package com.lab.webSocket.service.impl;

import com.lab.webSocket.dto.UserInfoDto;
import com.lab.webSocket.repository.FriendListRepository;
import com.lab.webSocket.service.FriendListService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by xu_jiaHui on 2017/9/7.
 */
@Service
public class FriendListServiceImpl implements FriendListService {

    @Resource
    private FriendListRepository friendListRepository;

    public List<UserInfoDto> getFriendListByUserAccount(String userAccount) throws Exception {
        return friendListRepository.getFriendListByUserAccount(userAccount);
    }
}
